package com.chinasoft.class6.group1;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class cook implements TrueWord {
    List<String> wordList =new ArrayList<>();
    Random random = new Random();

    public cook(){
        wordList.add("起雷起闪冲蕉道");
        wordList.add("今天看阅兵 ！");
        wordList.add("出去吃烧烤 ！");
    }

    @Override
    public String getWord() {
        int index = random.nextInt(wordList.size());
        return wordList.get( index);
    }

    @Override
    public String getName() {
        return "cook";
    }
}
